﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;
using NHibernate;
using FluentNHibernate.Data;

namespace BankCreditPortfolio.DAL.Entities
{
    public class TariffsDocuments
    {
        public virtual int TariffsDocumentsId { get; set; }
        public virtual int TariffId { get; set; }
        public virtual int DocumentTypeId { get; set; }
    }

    public class TariffsDocumentsMap : ClassMap<TariffsDocuments>
    {
        public TariffsDocumentsMap()
        {
            Id(x => x.TariffsDocumentsId).GeneratedBy.HiLo("tariffsdocuments");
            Id(x => x.TariffsDocumentsId).Unique();
            Map(x => x.TariffId);
            Map(x => x.DocumentTypeId);
            Table("TariffsDocuments");
        }
    }
}